package com.ruoyi.order.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

/**
 * 卖品订单信息对象 goods_order_info
 *
 * @author HYANFENG
 * @date 2021-03-17
 */
@TableName("goods_order_info")
public class GoodsOrderInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    @TableId(value = "id")
    private Long id;
    /** 订单ID */
    @Excel(name = "订单ID")
    private Long orderId;
    /** 卖品订单⾦额 */
    @Excel(name = "卖品订单⾦额")
    private Long orderAmount;
    /** 卖品⽀付⾦额 */
    @Excel(name = "卖品⽀付⾦额")
    private Long payAmount;
    /** 取货码 */
    @Excel(name = "取货码")
    private String pickupCode;

    private List<GoodsOrderGoodsInfo> goodsList;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setOrderId(Long orderId)
    {
        this.orderId = orderId;
    }

    public Long getOrderId()
    {
        return orderId;
    }
    public void setOrderAmount(Long orderAmount)
    {
        this.orderAmount = orderAmount;
    }

    public Long getOrderAmount()
    {
        return orderAmount;
    }
    public void setPayAmount(Long payAmount)
    {
        this.payAmount = payAmount;
    }

    public Long getPayAmount()
    {
        return payAmount;
    }
    public void setPickupCode(String pickupCode)
    {
        this.pickupCode = pickupCode;
    }

    public String getPickupCode()
    {
        return pickupCode;
    }

    public List<GoodsOrderGoodsInfo> getGoodsList() {
        return goodsList;
    }

    public void setGoodsList(List<GoodsOrderGoodsInfo> goodsList) {
        this.goodsList = goodsList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderId", getOrderId())
            .append("orderAmount", getOrderAmount())
            .append("payAmount", getPayAmount())
            .append("pickupCode", getPickupCode())
            .toString();
    }
}
